#include "test_album.h"

#include <stdio.h>

typedef unsigned int uint;

int bitij(int i2, int j2) {  
  uint t = 0xffffffff;
  uint i = uint(i2);
  uint j = uint(31 - j2);
  return int((t << i) & (t >> j));
}

namespace ct {
void BitsTest::Run(int argc, char *argv[]) {
  printf("%d\n", bitij(1, 5));  
  printf("%d\n", bitij(0, 31));
  printf("%d\n", bitij(0, 8));
  printf("%d\n", bitij(17, 31));
}
} // ct

